package com.app.service.impl.superarket;

import com.app.mapper.supermarket.CommentMapper;
import com.app.mapper.supermarket.SkillSonMapper;
import com.app.model.supermarket.CommentModel;
import com.app.model.supermarket.SkillSonModel;
import com.app.service.supermarket.CommentService;
import com.app.service.supermarket.SkillSonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @Description:零活
 * @Author: N
 * @Date: 2022年11月24日 10点29分
 */
@Service
@Primary
public class SkillSonServiceImpl implements SkillSonService {
    @Autowired
    SkillSonMapper skillSonMapper;


    @Override
    public List<SkillSonModel> getSkillByMid(int mid) {
        return skillSonMapper.getSkillByMid(mid);
    }

    @Override
    public List<SkillSonModel> getSkillsBySid(int sid) {
        return skillSonMapper.getSkillsBySid(sid);
    }

    @Override
    public int skillInsert(SkillSonModel skillSon) {
        return skillSonMapper.skillInsert(skillSon);
    }

    @Override
    public int skillUpdate(SkillSonModel skillSon) {
        return skillSonMapper.skillUpdate(skillSon);
    }

    @Override
    public SkillSonModel getSkillSon(int id) {
        return skillSonMapper.getSkillSon(id);
    }

    @Override
    public void update(SkillSonModel model) {
        skillSonMapper.updateById(model);
    }
}
